package net.viservice.quartz.job;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PrintTimeJob {

	private static final Logger logger = LoggerFactory.getLogger(PrintTimeJob.class);
	private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public void run() {
		String currentTime = sdf.format(new Date());
		logger.info("当前时间:" + currentTime);
	}

}
